package com.task.services;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.task.bean.TaskRunBean;
import com.task.dao.TaskRunDao;


@Service
@Transactional
public class TaskRunService {

	@Autowired
	private TaskRunDao taskRunDao;
	
	public TaskRunBean getTaskRunBean(Integer id) {
		return this.taskRunDao.getTaskRunBean(id);
	}
	
	public  List<TaskRunBean> getAllTaskRun(Map<String,String> queryMap){
		return this.taskRunDao.getAllTaskRun(queryMap);
	}
	
    public int getAllTaskRunCount(Map<String,String> queryMap) {
    	return this.taskRunDao.getAllTaskRunCount(queryMap);
    }
    
    public void saveTaskRun(TaskRunBean bean) {
    	 this.taskRunDao.saveTaskRun(bean);
    }
    
    public void delTaskRun(String ids) {
    	 this.taskRunDao.delTaskRun(ids);
    }
    
    public void updateTaskRun(TaskRunBean tb) {
    	this.taskRunDao.updateTaskRun(tb);
    }
}
